using NPOI.SS.Formula.Functions;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 用户扩展表
    /// </summary>
    [Table("JIUSHI_USEREXTEND")]
    public class UserextendEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("F_ID")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 用户主键
        /// </summary>
        [Column("F_USERID")]
        [MaxLength(50)]
        public string UserId { get; set; }


        /// <summary>
        ///上级合伙人用户ID
        /// </summary>
        [Column("F_ParentPartnerUserId")]
        public string ParentPartnerUserId { get; set; }


        /// <summary>
        /// 总获取积分
        /// </summary>
        [Column("F_TOTALPOINTSEARNED")]
        public decimal? TotalPointsEarned { get; set; }


        /// <summary>
        /// 提现中积分
        /// </summary>
        [Column("F_WithdrawPoints")]
        public decimal? WithdrawPoints { get; set; }

        /// <summary>
        /// 已提现积分
        /// </summary>
        [Column("F_TOTALPOINTSSPENT")]
        public decimal? TotalPointsSpent { get; set; }

        /// <summary>
        /// 待提现积分
        /// </summary>
        [Column("F_POINTSPENDINGWITHDRAWAL")]
        public decimal? PointsPendingWithdrawal { get; set; }

        /// <summary>
        /// 提成配置
        /// </summary>
        [Column("F_ComConfig")]
        public string ComConfig { get; set; }


        /// <summary>
        /// 抽佣比例
        /// </summary>
        [Column("F_DRAWPROPORTION")]
        public decimal? DrawProportion { get; set; }


        /// <summary>
        /// 合伙人数量
        /// </summary>
        [Column("F_PartnerNumber")]
        public int? PartnerNumber { get; set; }

        /// <summary>
        /// 支付方式 1：银行卡 2：支付宝
        /// </summary>
        [Column("F_PayType")]
        public int? PayType { get; set; }

        /// <summary>
        /// 支付账号
        /// </summary>
        [Column("F_PayAccount")]
        [MaxLength(50)]
        public string PayAccount { get; set; }


        /// <summary>
        /// 支付名称
        /// </summary>
        [Column("F_PayName")]
        [MaxLength(50)]
        public string PayName { get; set; }

        /// <summary>
        /// 银行名称
        /// </summary>
        [Column("F_PayBankName")]
        [MaxLength(50)]
        public string PayBankName { get; set; }

        /// <summary>
        /// 银行账号
        /// </summary>
        [Column("F_PayBankNumber")]
        [MaxLength(50)]
        public string PayBankNumber { get; set; }


        /// <summary>
        /// 排序
        /// </summary>
        [Column("F_SORTCODE")]
        public int? SortCode { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        [MaxLength(50)]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        [MaxLength(50)]
        public string LastModifyUserId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        [MaxLength(50)]
        public string DeleteUserId { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSER")]
        [MaxLength(50)]
        public string CreatorUser { get; set; }

        


    }
}
